import request from '@/utils/request'

// 查询团队列表
export function listATeam(query) {
  return request({
    url: '/system/aTeam/list',
    method: 'get',
    params: query
  })
}

// 查询团队列表
export function listAllATeam(query) {
  return request({
    url: '/system/aTeam/listAll',
    method: 'get',
    params: query
  })
}

// 查询团队详细
export function getATeam(id) {
  return request({
    url: '/system/aTeam/' + id,
    method: 'get'
  })
}

// 新增团队
export function addATeam(data) {
  return request({
    url: '/system/aTeam',
    method: 'post',
    data: data
  })
}

// 修改团队
export function updateATeam(data) {
  return request({
    url: '/system/aTeam',
    method: 'put',
    data: data
  })
}

// 删除团队
export function delATeam(id) {
  return request({
    url: '/system/aTeam/' + id,
    method: 'delete'
  })
}
